﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Linq;

namespace Core.Xml.Ogc.Ows
{
    class DomainMetaDataType : IXmlType
    {
        public string Reference { get; set; }
        public string Value { get; set; }

        public XElement CreateXElement(XName elementName)
        {
            XElement domaintMetaData = new XElement(elementName);

            domaintMetaData.Add(new XAttribute(Namespaces.OWS + "reference", Reference));
            domaintMetaData.Add(new XText(Value));

            return domaintMetaData;
        }
    }
}
